<!DOCTYPE html>
<html>
<!-- 
* @brief: App to create database models from scratch.
* @author: 
* @copyright: GPLv3
* @date: 26-04-2015
-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>可视化轻代码数据开发平台</title>

<link href='https://fonts.googleapis.com/css?family=Ubuntu' rel='stylesheet' type='text/css'>
<link rel='stylesheet' href='css/bootstrap.min-3.3.5.css'/>
<link rel="icon" href="img/hz.png"/>
<link type="text/css" href="lib/prettify/prettify.css" rel="stylesheet" />
<link rel='stylesheet' href='css/app.css'/>

<script type="text/javascript" src="lib/prettify/prettify.js"></script>
<script src='lib/jquery.min.js'></script>
<script src='lib/bootstrap.min.js'></script>
<script src="lib/jsPlumb-2.1.2-min.js"></script>
<!--<script src="lib/jsplumb-2.4.2.min.js"></script>-->
<script src='js/classes.js'></script>
<script src="js/utils.js"></script>
<script src='js/app.js'></script>
<script src='js/addTableDialog.js'></script>
<script src='js/codeGenerator.js'></script>
</head>
<body>
<nav class="header navbar navbar-inverse" role="navigation" style="margin-bottom:2px;">
  <div class="container">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
	
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="#"><img style="padding:0px;margin-top:-10px;border-radius:10px" class='img-responsive' src="img/thumb.png"></img></a>
    </div>
    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav">
        <li><a href="javascript:" onclick="javascript:showAddTableDialog();"><span class="glyphicon glyphicon-plus"></span>&nbsp;新增表</a></li>
        <li><a href="javascript:" onclick="eraseCanvasState();"><span class="glyphicon glyphicon-remove"></span>&nbsp;清除所有</a></li>
        <li><a href="javascript:" onclick="showResultsDialog();"><span class="glyphicon glyphicon-list"></span>&nbsp;生成代码</a></li>
		<!-- TODO: Fix this so that it uses a separate method or is invisible in mobile size -->
		<!--
        <li><a href="javascript:" onclick="exportCanvas();"><span class="glyphicon glyphicon-export"></span>&nbsp;Export Canvas</a></li>
		<li><a href="javascript:" class="btn-file"><form action="#" onchange="importCanvas();"><input id="inputCanvasFile" type="file"><span class="glyphicon glyphicon-import"></span>&nbsp;Import Canvas</input></form></a></li>-->
-->     
	 </ul>
	  <!-- 
      <ul class="nav navbar-nav navbar-right">
        <li><a id="lnkHelp" onclick="bshelp();" href="javascript:"><span class="glyphicon glyphicon-question-sign"></span>&nbsp;Help</a></li>
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown">Links <span class="caret"></span></a>
          <ul class="dropdown-menu" role="menu">
            <li><a href="https://github.com/prahladyeri/valchemist">Github Project</a></li>
            <li class="divider"></li>
            <li><a href="https://github.com/prahladyeri/valchemist/issues">Bug Tracker</a></li>
            <li><a href="https://www.reddit.com/r/VisualAlchemist">Discussion Room</a></li>
            <li><a href="#" onclick="javascript:bsabout();">About</a></li>
          </ul>
        </li>
      </ul>  
	  -->
    </div><!-- /.navbar-collapse -->
  </div><!-- /.container-fluid -->
</nav>

	<div class="container-fluid">
		<div class="row">
			<div id="theCanvas" class="col-md-12 canvas">
				<div class="hidden mainAlert col-md-push-3 col-md-6 alert alert-success alert-dismissible" role="alert">
				  <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
				  <strong>How to:</strong> Just click the <a class="alert-link" href="javascript:" onclick="javascript:showAddTableDialog();">New Table</a> link above to start creating tables.
				  Once done, simply click the <strong>Code</strong> button to get the python code for the sqlalchemy models!
				  <br>
				  <br>
          创建关系，连接需要连接的字段
				   <!--To create relationships, drag the orange dots (primary-keys) and connect them to blue dots (candidate foreign-keys).-->
				</div>
			</div>
		</div>
	</div>
	<div id="holder"></div>
	<div id="holderResults"></div>
	
<nav class="navbar navbar-inverse  navbar-fixed-bottom  footer" style="min-height:30px;max-height:30px;" role="navigation">
  <div class="container">
	<div class="row">
		<div class="col-md-12" > <!--
			<p style="color:white;">&copy;  <span id='theyear'></span>. Code licensed under <a href="https://github.com/prahladyeri/valchemist/blob/master/LICENSE">GPLv3</a>.
			</p> -->
		</div>
	</div>
  </div>
</nav>
</body>
</html>
